/**
 * @author QL
 * @date 2022-02-23 10:32:33
 * @version V..
 * @description gis底图基础配置对象
 */
import { get as getProjection } from "ol/proj";
import { FullScreen, MousePosition, ScaleLine } from "ol/control";

export const selfMap_config = {

    tileLayer_config: {
        url: "https://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
    },

    view_config: {
        projection: getProjection("EPSG:4326"),
        controls: [],
        center: [120.41509936687773, 37.306405970393456],
        zoom: 11.2,
        minZoom: 9,
        maxZoom: 18,
    },

    baseLayers_config: [
        {
            type: "gaode",
            kind: "vector"
        },
        // {
        //   type: "tianditu",
        //   kind: "vectorTile"
        // },
        // {
        //   type: "tianditu",
        //   kind: "vectorLabel"
        // },
        {
            type: "gaode",
            kind: "imageTile"
        },
        {
            type: "gaode",
            kind: "imageLabel"
        },
        {
            type: "arcgis",
            kind: "blue"
        },
        {
            type: "arcgis",
            kind: "grey"
        }
    ],

    controls_config: {
        defaults: {
            attribution: false,
            rotate: false,
            zoom: false,
        },
        extend: [
            // new FullScreen(),
            // new MousePosition(),
            // new ScaleLine()
        ]
    }
}